package com.camel.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.camel.core.entity.BasePaginationEntity;
import lombok.Data;

/**
 *
 * @TableName tb_column
 */
@TableName(value ="tb_column")
@Data
public class TbColumn extends BasePaginationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据源ID
     */
    @TableField(value = "source_id")
    private Integer sourceId;

    /**
     * 模式
     */
    @TableField(value = "schema_name")
    private String schemaName;

    /**
     * 表中文名
     */
    @TableField(value = "table_desc")
    private String tableDesc;

    /**
     * 表名
     */
    @TableField(value = "table_name")
    private String tableName;

    /**
     * 列名
     */
    @TableField(value = "column_name")
    private String columnName;

    /**
     * 列属性
     */
    @TableField(value = "column_type")
    private String columnType;

    /**
     * 列备注
     */
    @TableField(value = "descript")
    private String descript;

    /**
     * 别列名
     */
    @TableField(value = "column_save_as")
    private String columnSaveAs;

    /**
     * 字典类型
     */
    @TableField(value = "dict_type")
    private String dictType;

    @TableField(exist = false)
    private TbDict tbDict;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
